package main

import (
	"evanbao/comp-incr-difference/comp"
	"fmt"
	"log"
	"os"
)

func main() {
	if len(os.Args) < 4 {
		log.Println("args len not equal 4. [program, sourceDir/tar.gz, destDir/tar.gz, deCompressTarDir]")
		return
	}

	err := comp.Diff(os.Args[1], os.Args[2], os.Args[3])
	if err != nil {
		fmt.Println("error")
	} else {
		fmt.Println("ok")
	}

}
